import request from "@/utils/request";
export default class index {
  // 小游戏每日统计
  static gameDayStatistics(params: any) {
    return request({
      url: "api/statistics/gameDayStatistics",
      method: "get",
      params,
    });
  }
  static setUnioniInfo(data: any) {
    return request({
      url: `api/union/update`,
      method: "post",
      data,
    });
  }

  static createUnionInfo(data: any) {
    return request({
      url: `api/union/create`,
      method: "post",
      data,
    });
  }

  static getUnionList(query: any) {
    return request({
      url: `api/union/list`,
      method: "get",
      params: query,
    });
  }

  static getUnionRoomList(query: any) {
    return request({
      url: `api/union/roomList`,
      method: "get",
      params: query,
    });
  }

  static getUnionUserList(query: any) {
    return request({
      url: `api/union/userList`,
      method: "get",
      params: query,
    });
  }
  static reliveUser(query: any) {
    return request({
      url: `api/union/reliveUser`,
      method: "get",
      params: query,
    });
  }
  static kickUnionUser(query: any) {
    return request({
      url: `api/union/kickUser`,
      method: "get",
      params: query,
    });
  }

  static getUnionSignUserList(query: any) {
    return request({
      url: `api/union/getUnionSign`,
      method: "get",
      params: query,
    });
  }

  static roomJoinUnion(data: any) {
    return request({
      url: `api/union/roomJoinUnion`,
      method: "post",
      data,
    });
  }

  static delUnionAll(query: any) {
    return request({
      url: `api/union/delUnion`,
      method: "get",
      params: query,
    });
  }

  static createGroup(query: any) {
    return request({
      url: `api/union/createGroup`,
      method: "get",
      params: query,
    });
  }

  static createUnionParam(data: any) {
    return request({
      url: `api/union/createUnionParam`,
      method: "post",
      data,
    });
  }

  static getUnionParamList(query: any) {
    return request({
      url: `api/union/getUnionParamList`,
      method: "get",
      params: query,
    });
  }

  static updateUnionParam(data: any) {
    return request({
      url: `api/union/updateUnionParam`,
      method: "post",
      data,
    });
  }

  static setChangeDeposit(data: any) {
    return request({
      url: `api/union/setChangeDeposit`,
      method: "post",
      data,
    });
  }

  static getUnionMallList(query: any) {
    return request({
      url: `api/union/getUnionMallList`,
      method: "get",
      params: query,
    });
  }

  static deletePropItem(id: any) {
    return request({
      url: `api/union/deletePropItem/${id}`,
      method: "delete",
    });
  }

  static geProps(query: any) {
    return request({
      url: "api/union/getProps",
      method: "get",
      params: query,
    });
  }

  static createUnionShopItem(data: any) {
    return request({
      url: `api/union/createUnionShopItem`,
      method: "post",
      data,
    });
  }

  static updateUnionShopItem(data: any) {
    return request({
      url: `api/union/updateUnionShopItem`,
      method: `post`,
      data,
    });
  }

  static roomWater(room_id:any, query: any) {
    return request({
      url: "api/union/roomWater/" + room_id,
      method: "get",
      params: query,
    });
  }

  static upOrginUnion(params: any) {
    return request({
      url: `api/organization/upOrginUnion`,
      method: "get",
      params,
    });
  }

  static getUnionSettleList(params: any) {
    return request({
      url: `api/settle/getUnionSettleList`,
      method: "get",
      params,
    });
  }

  static unionSettleAudit(data: any) {
    return request({
      url: `api/settle/unionSettleAudit`,
      method: "post",
      data,
    });
  }
  // 房间/小屋列表
  static getRooms(params: any) {
    return request({
      url: 'api/rooms',
      method: 'get',
      params
    })
  }

  // 搜索房间
  static getRoomInfo(data: any) {
    return request({
      url: 'api/rooms/getRoomInfo',
      method: 'post',
      data
    })
  }

  // 编辑小屋推荐系数
  static setRoomCoefficient(room_id:number | string,data: any) {
    return request({
      url: `api/rooms/coefficient/${room_id}`,
      method: 'put',
      data
    })
  }

  // 小屋房间流水
  static getCabinWater(room_id:number | string,params: any) {
    return request({
      url: `api/rooms/getCabinWater/${room_id}`,
      method: 'get',
      params
    })
  }

  // 关闭房间记录列表
  static getRoomCloseLog(data: any) {
    return request({
      url: `api/rooms/getCloseRoomLogList`,
      method: 'post',
      data
    })
  }

  // 关闭房间记录列表 - 删除
  static delCloseRoomLog(data: any) {
    return request({
      url: `api/rooms/delCloseRoomLog`,
      method: 'post',
      data
    })
  }

  // 编辑关闭房间理由
  static editCloseRoomReason(data: any) {
    return request({
      url: `api/rooms/editCloseRoomReason`,
      method: 'post',
      data
    })
  }

  // 关闭房间
  static closeRoomReason(data: any) {
    return request({
      url: `api/rooms/closeRoomReason`,
      method: 'post',
      data
    })
  }

  static setRoomImage(id: any, data: any) {
    return request({
      url: `api/rooms/image/${id}`,
      method: 'put',
      data
    })
  }

  static createLabel(data: any) {
    return request({
      url: 'api/rooms/label/create',
      method: 'post',
      data
    })
  }

  static updateLabel(data: any) {
    return request({
      url: `api/rooms/label/update`,
      method: 'put',
      data
    })
  }

  static getLabel() {
    return request({
      url: 'api/rooms/label',
      method: 'get',
    })
  }

  static delLabel(id: any) {
    return request({
      url: `api/rooms/label/${id}`,
      method: 'delete',
    })
  }

  static getRoomType(data: any) {
    return request({
      url: 'api/rooms/type',
      method: 'get',
      params: data
    })
  }

  static setCertified(id: any, data: any) {
    return request({
      url: `api/rooms/certified/${id}`,
      method: 'put',
      data
    })
  }

  static setRoomDesc(id: any, data: any) {
    return request({
      url: `api/rooms/desc/${id}`,
      method: 'put',
      data
    })
  }

  static setRoomName(id: any, data: any) {
    return request({
      url: `api/rooms/name/${id}`,
      method: 'put',
      data
    })
  }

  static setRoomNotice(id: any, data: any) {
    return request({
      url: `api/rooms/notice/${id}`,
      method: 'put',
      data
    })
  }

  static getRoomWater(room_id: any, query: any) {
    return request({
      url: `api/rooms/water/${room_id}`,
      method: 'get',
      params: query
    })
  }
  // 魅力榜
  static getRooCharmValList(room_id: any, params: any) {
    return request({
      url: `api/rooms/charm/${room_id}`,
      method: 'get',
      params
    })
  }
  // 财富榜
  static getwaterList(room_id: any, params: any) {
    return request({
      url: `api/rooms/user/water/${room_id}`,
      method: 'get',
      params
    })
  }

  static getRecommendRoomList(query: any) {
    return request({
      url: `api/rooms/recommend`,
      method: 'get',
      params: query
    })
  }

  static getViolationRecordList(id: any, query: any) {
    return request({
      url: `api/rooms/get/violationRecord/${id}`,
      method: 'get',
      params: query
    })
  }

  static delviolationRecord(id: any) {
    return request({
      url: `api/rooms/delete/violationRecord/${id}`,
      method: 'delete',
    })
  }

  static addCbdViolationLog(data: any) {
    return request({
      url: `api/rooms/create/violationRecord`,
      method: 'post',
      data
    })
  }

  static getRoomOpLog(id: any) {
    return request({
      url: `api/rooms/op_log/${id}`,
      method: 'get'
    })
  }

  static addCloseRoomReason(data: any) {
    return request({
      url: `api/rooms/closeRoomReason`,
      method: 'post',
      data
    })
  }
  static addopenRoomRoomReason(data: any) {
    return request({
      url: `api/rooms/openRoom`,
      method: 'post',
      data
    })
  }
  static liangTag(data: any) {
    return request({
      url: `api/rooms/liangTag`,
      method: 'post',
      data
    })
  }

  static createCBDRoom(data: any) {
    return request({
      url: `api/rooms/createCBDRoom`,
      method: 'post',
      data
    })
  }

  static updateCBDRoom(data: any) {
    return request({
      url: `api/rooms/updateCBDRoom`,
      method: 'put',
      data
    })
  }

  static updateCbdUid(data: any) {
    return request({
      url: `api/rooms/updateCbdUid`,
      method: 'post',
      data
    })
  }

  static getOnlineTime(room_id: any, query: any) {
    return request({
      url: `api/rooms/online/time/${room_id}`,
      method: 'get',
      params: query
    })
  }
  static getRoomLabelById(query: any) {
    return request({
      url: `api/rooms/getLabelById`,
      method: 'get',
      params: query
    })
  }
  static insertOrUpdateLabel(data: any) {
    return request({
      url: `api/rooms/insertOrUpdateLabel`,
      method: 'post',
      data
    })
  }
  static delNotRecommendLabel(id: any) {
    return request({
      url: `api/rooms/delNotRecommendLabel/${id}`,
      method: 'delete',
    })
  }
  static getRoomShotoff(room_id: any, query: any) {
    return request({
      url: `api/rooms/shotoff/${room_id}`,
      method: 'get',
      params: query
    })
  }

  static getRoomDynami(query: any) {
    return request({
      url: `api/rooms/getRoomDynamic`,
      method: 'get',
      params: query
    })
  }
  // 添加或修改封面
  static setDynamic(data: any) {
    return request({
      url: 'api/rooms/setDynamic',
      method: 'post',
      data
    })
  }
  // 删除封面
  static delDynamic(data: any) {
    return request({
      url: 'api/rooms/delDynamic',
      method: 'post',
      data
    })
  }
  // 活动房间封面获取详情
  static getspectialroom(params: any) {
    return request({
      url: 'api/rooms/getspectialroom',
      method: 'get',
      params
    })
  }
  // 活动房间封面新增OR修改
  static roomspecialcover(data: any) {
    return request({
      url: 'api/rooms/roomspecialcover',
      method: 'post',
      data
    })
  }
  // 置顶房间列表
  static topRoomList(params: any) {
    return request({
      url: 'api/rooms/topRoomList',
      method: 'get',
      params
    })
  }
  // 新增置顶房间
  static topRoomCreate(data: any) {
    return request({
      url: 'api/rooms/topRoomCreate',
      method: 'post',
      data
    })
  }
  // 修改置顶房间
  static topRoomUpdate(data: any) {
    return request({
      url: 'api/rooms/topRoomUpdate',
      method: 'post',
      data
    })
  }
  // 删除置顶房间
  static topRoomDel(data: any) {
    return request({
      url: 'api/rooms/topRoomDel',
      method: 'post',
      data
    })
  }
  // 公会房间周结算列表
  static unionRoomWeekRewardList(params: any) {
    return request({
      url: 'api/statistics/unionRoomWeekRewardList',
      method: 'get',
      params
    })
  }
  // 首页推荐房间列表
  static suggestRoomList(params: any) {
    return request({
      url: 'api/suggest/roomlist',
      method: 'get',
      params
    })
  }
  // 首页推荐房间列表搜索
  static suggestRoomListSearch(params: any) {
    return request({
      url: 'api/suggest/search',
      method: 'get',
      params
    })
  }
  // 首页推荐房间列表添加/编辑
  static suggestAddorupdate(data: any) {
    return request({
      url: 'api/suggest/addorupdate',
      method: 'post',
      data
    })
  }
  // 首页推荐房间列表删除状态
  static suggestchagestatus(data: any) {
    return request({
      url: 'api/suggest/chagestatus',
      method: 'post',
      data
    })
  }
  // 设置公会奖励类型
  static unionSetRewardType(data: any) {
    return request({
      url: 'api/union/unionSetRewardType',
      method: 'post',
      data
    })
  }
  // 获取房间分成用户
  static getRoomFinanceUser(params: any) {
    return request({
      url: 'api/getRoomFinanceUser',
      method: 'get',
      params
    })
  }
  // 设置房间分成用户
  static setRoomFinanceUser(data: any) {
    return request({
      url: 'api/setRoomFinanceUser',
      method: 'post',
      data
    })
  }
  // 主播私信数量列表
  static getIdentityMsgStatisticsList(params: any) {
    return request({
      url: 'api/getIdentityMsgStatisticsList',
      method: 'get',
      params
    })
  }
  // 房间边框列表
  static roomFrameList(params: any) {
    return request({
      url: 'api/roomFrameList',
      method: 'get',
      params
    })
  }
  // 房间边框新增
  static roomFrameAdd(data: any) {
    return request({
      url: 'api/roomFrameAdd',
      method: 'post',
      data
    })
  }
  // 房间边框编辑
  static roomFrameEdit(data: any) {
    return request({
      url: 'api/roomFrameEdit',
      method: 'post',
      data
    })
  }
  // 房间边框下发记录列表
  static roomFrameLogList(params: any) {
    return request({
      url: 'api/roomFrameLogList',
      method: 'get',
      params
    })
  }
  // 房间边框用户下发记录新增
  static roomFrameUserAdd(data: any) {
    return request({
      url: 'api/roomFrameUserAdd',
      method: 'post',
      data
    })
  }
  // 房间边框用户下发记录编辑
  static roomFrameUserEdit(data: any) {
    return request({
      url: 'api/roomFrameUserEdit',
      method: 'post',
      data
    })
  }
  // 房间边框用户下发记录删除
  static roomFrameUserDel(data: any) {
    return request({
      url: 'api/roomFrameUserDel',
      method: 'post',
      data
    })
  }
  // 隐藏房间
  static hideRoom(data: any) {
    return request({
      url: 'api/room/hideRoom',
      method: 'post',
      data
    })
  }
}
